#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#define m 11

struct TreeNode {
    int val;
     struct TreeNode *left;
     struct TreeNode *right;
};



bool isSameTree(struct TreeNode* p, struct TreeNode* q) {
    if (p == NULL && q == NULL)
        return true;
    else if (p == NULL && q != NULL)
        return false;
    else if (q == NULL && p != NULL)
        return false;
    if (p->val == q->val)
    {
        if (isSameTree(p->left, q->left))
        {
            if (!isSameTree(p->right, q->right))
            {
                return false;
            }
        }
        else
        {
            return false;
        }
        return true;
    }
    else
    {
        return false;
    }
}
int maxDepth(struct TreeNode* root) {
    if (root == NULL)
        return 0;
    else
        return max(maxDepth(root->left), maxDepth(root->right)) + 1;
}
int main()
{
    int a[m], i;
    for (i = 0; i < m - 1; i++)
        scanf("%d", &a[i]);
    a[m - 1] = a[0];
    for (i = 1; i < m - 1; i++)
        if (a[m - 1] > a[i])
            a[m - 1] = a[i];
    printf("Min is %d\n", a[m - 1]);
    return 0;
}
